package com.jltx.zeus.arch.task

import android.content.Context
import android.os.Looper
import android.os.SystemClock
import android.util.Log
import com.jltx.xq.zeus.startup.AndroidStartup
import java.util.ArrayList

class Task3 : AndroidStartup<Void?>() {
    override fun create(context: Context): Void? {
        val t = if (Looper.myLooper() == Looper.getMainLooper()) "主线程: " else "子线程: "
        Log.d("GGGGG", "$t Task3：学习设计模式")
        SystemClock.sleep(1000)
        Log.d("GGGGG", "$t Task3：掌握设计模式")
        return null
    }

    override fun dependenciesByName(): List<String>? {
        val depends: MutableList<String> = ArrayList()
        depends.add("com.jltx.zeus.arch.task.Task1")
        return depends
    }
}